Page({

  /**
   * 页面的初始数据
   */
  data: {

    active: 0,
    // 积分导航菜单数据
    navList: [
      {
        name: '自觉学习',
        url: '/pages/si1/si1',
        icon: '/static/images/icon/自觉学习.png'
      },
      {
        name: '三会一课',
        url: '/pages/si2/si2',
        icon: '/static/images/icon/三会一课.png'
      },
      {
        name: '主题党日',
        url: '/pages/si3/si3',
        icon: '/static/images/icon/主题党日.png'
      },
      {
        name: '读书活动',
        url: '/pages/si4/si4',
        icon: '/static/images/icon/读书活动.png'
      },
    ],
  
    navList2: [
      {
        name2: '个人荣誉',
        url2: '/pages/zhuan1/zhuan1',
        icon2: '/static/images/icon/个人荣誉.png'
      },
      {
        name2: '认真上课',
        url2: '/pages/zhuan2/zhuan2',
        icon2: '/static/images/icon/认真上课.png'
      },
      {
        name2: '技能竞赛',
        url2: '/pages/zhuan3/zhuan3',
        icon2: '/static/images/icon/技能竞赛.png'
      },
      {
        name2: '创新创业',
        url2: '/pages/zhuan4/zhuan4',
        icon2: '/static/images/icon/创新创业.png'
      },
      {
        name2: '学术论文',
        url2: '/pages/zhuan5/zhuan5',
        icon2: '/static/images/icon/学术论文.png'
      },
    ],

    navList3: [
      {
        name3: '帮助学生学业',
        url3: '/pages/le1/le1',
        icon3: '/static/images/icon/帮助学生学业.png'
      },
      {
        name3: '关心学生生活',
        url3: '/pages/stulife/stulife',
        icon3: '/static/images/icon/关心学生生活.png'
      },
      {
        name3: '公益活动',
        url3: '/pages/le3/le3',
        icon3: '/static/images/icon/公益活动.png'
      },
    ],
  },

  //启用分享按钮
  handlerShare() {
    wx.showShareMenu({
      withShareTicket: true,
      success: function () {
        console.log("成功分享")
      },
      fail: function () {
        console.log("分享取消")
      },
      complete: function () {
        console.log("成功完成")
      }
    })
  },
  myswitchTab() {

    wx.switchTab({
      url: '/pages/index/index',
      url2: '/pages/index1/index1',
      url3: '/pages/index1/index1',
    })
  },
  myreLaunch() {
    console.log('myreLaunch')
  },
  myredirectTo() {
    console.log('myredirectTo')
  },
  mynavigateTo() {
    console.log('mynavigateTo')
    wx.navigateTo({
      url: '/pages/test/test',
      url2: '/pages/test/test',
      url3: '/pages/test/test',
    })
  },
  mynavigateBack() {
    console.log('mynavigateBack')
  },
  

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }

})